<template>
  <div>
    我是父组件2222<br />
    <!-- 旧的写法 -->
    <my-dialog>
      <div slot="title">新增用户</div>
      <el-form
        :model="form"
        ref="form"
        label-width="80px"
        :inline="false"
        size="normal"
      >
        <el-form-item label="用户名">
          <el-input v-model="form.username"></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer">
        <el-button type="primary" size="default">取消</el-button>
        <el-button type="primary" size="default">确定</el-button>
      </span>
    </my-dialog>
  </div>
</template>

<script>
import MyDialog from './MyDialog'
export default {
  components: {
    MyDialog
  },
  data () {
    return {
      form: {
        username: ''
      }
    }
  }
}
</script>

<style></style>
